package com.yan.design.two.behavior.s10;

/**
 * 10. 策略模式
 *      测试
 * @author shengren.yan
 * @create 2022-08-14
 */
public class testRun {

    public static void main(String[] args) {
        Wild w = new Wild();
        w.display();
        w.doFly();

        Duck d2 = new Peck();
        d2.display();
        d2.doFly();
    }
}
